home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Reference / the cmsp digests ('94-'97) / csmp digest Vol 4 No 037 < prev   
Text File  |  1997-03-06  |  78KB  |  2,343 lines

  1. C.S.M.P. Digest             Wed, 05 Mar 97       Volume 4 : Issue 37
  2.  
  3. Today's Topics:
  4.  
  5.         Any books on PowerPC assembly language?
  6.         Basic and Pascal Compiler
  7.         Calculating CPU loading time?
  8.         Can 'clutType" color tables have more than 256 colors
  9.         ControlList
  10.         Converting postscript to text
  11.         CopyBits
  12.         Disable shutdown key?
  13.         DrawPicture
  14.         Embedding a QuickTime into an app
  15.         How do I use BitMapToRegion?
  16.         Images In "SimpleText"?..
  17.         MRJ and stand-alone Java applications
  18.         SFGetFile feeding Finder doc info automatically?
  19.         Stereo sound?
  20.  
  21.  
  22.  
  23. The Comp.Sys.Mac.Programmer Digest is moderated by Mark Aiken
  24. (marka@ee.mcgill.ca).
  25.  
  26. The digest is a collection of article threads from the internet
  27. newsgroups comp.sys.mac.programmer.help, csmp.tools, csmp.misc and
  28. csmp.games. It is designed for people who read news semi-regularly and
  29. want an archive of the discussions.  If you don't know what a
  30. newsgroup is, you probably don't have access to it. Ask your systems
  31. administrator(s) for details. If you don't have access to news, you
  32. may still be able to post messages to the group by using a mail server
  33. like anon.penet.fi (mail help@anon.penet.fi for more information).
  34.  
  35. Each issue of the digest contains one or more sets of articles (called
  36. threads), with each set corresponding to a 'discussion' of a particular
  37. subject.  The articles are not edited; all articles included in this digest
  38. are in their original posted form (as received by our news server at
  39. ee.mcgill.ca).  Article threads are not added to the digest until the last
  40. article added to the thread is at least two weeks old (this is to ensure that
  41. the thread is dead before adding it to the digest).  Article threads that
  42. consist of only one message are generally not included in the digest.
  43.  
  44. The digests can be obtained by email, ftp or through the World Wide Web.
  45.  
  46. If you want to receive the digest by mail, send email to 
  47. majordomo@ee.mcgill.ca with no subject and one of the following commands
  48. as body:
  49.  
  50.     help                        Sends you a summary of commands
  51.     subscribe csmp                      Adds you to the mailing list
  52.     unsubscribe csmp                    Removes you from the list
  53.  
  54. Once you have subscribed, you will automatically receive each new
  55. issue as it is created.
  56.  
  57. Back issues are available by ftp from Info-Mac mirror sites in the
  58. per/csmp subdirectory, e.g.
  59.  
  60.   ftp://sumex-aim.stanford.edu/info-mac/per/csmp/
  61.  
  62. The contents of all back issues can be searched by accessing the
  63. following URL, courtesy of Andrew Barry (ajbarry@ozemail.com.au):
  64.  
  65.     http://marvin.stattech.com.au/search.html
  66.  
  67. They can also be searched through the following URLs, thanks to
  68. Tim Tuck (Tim.Tuck@sensei.com.au):
  69.  
  70.     http://wais.sensei.com.au/searchform.html
  71.     wais://wais.sensei.com.au:210/csmp?
  72.  
  73. -------------------------------------------------------
  74.  
  75. >From golaq@aol.com (Golaq)
  76. Subject: Any books on PowerPC assembly language?
  77. Date: 31 Jan 1997 18:55:07 GMT
  78. Organization: AOL http://www.aol.com
  79.  
  80. I was wondering if there are any books on assembly language programming
  81. for the PowerPC
  82.  
  83. +++++++++++++++++++++++++++
  84.  
  85. >From Tim Humphrey <humphret@lurch.winthrop.edu>
  86. Date: Fri, 31 Jan 1997 14:47:08 -0500 (EST)
  87. Organization: Info Avenue INTERNET Access
  88.  
  89. On 31 Jan 1997, Golaq wrote:
  90.  
  91. > I was wondering if there are any books on assembly language programming
  92. > for the PowerPC
  93.  
  94. Motorola publishes some free books on PowerPC, actually the reference 
  95. manuals.  If you want to get into assembly language you might want to 
  96. check out this web site <http://www.tau.it/lightsoft>.  The company that 
  97. puts it up, Lightsoft, runs a mailing list where you can post questions 
  98. about assembly; details about the mailing list are on the site.
  99.  
  100. ..._Tim_...
  101. --=[You experience as you believe]=--
  102. http://www.winthrop.edu/~humphret
  103.  
  104.  
  105. +++++++++++++++++++++++++++
  106.  
  107. >From cooldog@inreach.com (Loren)
  108. Date: Fri, 31 Jan 1997 15:38:42 -0800
  109. Organization: Cool Dog Graphics
  110.  
  111. In article <19970131185501.NAA25712@ladder01.news.aol.com>, golaq@aol.com
  112. (Golaq) wrote:
  113.  
  114. > I was wondering if there are any books on assembly language programming
  115. > for the PowerPC
  116.  
  117. The only title _I've_ seen is the guide "Assembler for Macintosh With
  118. PowerPC" that came on my Metrowerks CodeWarrior CD. It's a DocViewer
  119. document from Apple, so you might be able to get an electronic or hard-copy
  120. edition from them.
  121.  
  122. +++++++++++++++++++++++++++
  123.  
  124. >From trumbull@cs.yale.edu (Ben Trumbull)
  125. Date: Wed, 05 Feb 1997 18:37:21 -0500
  126. Organization: Yale University
  127.  
  128. In article <19970131185501.NAA25712@ladder01.news.aol.com>, golaq@aol.com
  129. (Golaq) wrote:
  130.  
  131. > I was wondering if there are any books on assembly language programming
  132. > for the PowerPC
  133.  
  134. "Optimizing PowerPC Code" by Gary Kacmarcik is great.  But it's not an
  135. assembly language tutorial.
  136.  
  137. terminally curious,
  138.  
  139. Ben
  140. ___________________________________________________________________
  141. Benjamin Trumbull
  142. trumbull@cs.yale.edu       
  143. Yale University 
  144.        You can't be in hell; you can still read your e-mail
  145.  
  146. ---------------------------
  147.  
  148. >From pfannkuchcf@bvu.edu (Colin F. Pfannkuch)
  149. Subject: Basic and Pascal Compiler
  150. Date: 4 Feb 97 13:56:07 CDT
  151. Organization: Buena Vista University, Storm Lake, IA
  152.  
  153. I am looking for Basic and Pascal compilers for Macs (I was initially looking
  154. for Quick Basic and Turbo Pascal, but they apparently aren't made anymore).  
  155. The compiler is to be used by High School Students.  
  156. I am having trouble finding any compilers at all.  Any suggestions about what
  157. compilers are out and what ones are the best is greatly appreciated.
  158.  
  159. Colin F. Pfannkuch
  160. pfannkuchcf@bvu.edu
  161.  
  162. +++++++++++++++++++++++++++
  163.  
  164. >From Steve@emer.com (Steve Wilson)
  165. Date: 4 Feb 1997 22:04:31 GMT
  166. Organization: Emergent Behavior
  167.  
  168. In article <1997Feb4.135607.13976@bvu.edu>, pfannkuchcf@bvu.edu (Colin F.
  169. Pfannkuch) wrote:
  170.  
  171. > I am looking for Basic and Pascal compilers for Macs (I was initially looking
  172. > for Quick Basic and Turbo Pascal, but they apparently aren't made anymore).  
  173. > The compiler is to be used by High School Students.  
  174. > I am having trouble finding any compilers at all.  Any suggestions about what
  175. > compilers are out and what ones are the best is greatly appreciated.
  176.  
  177. Metrowerks has a pascal compiler.  There have academic discounts. 
  178. <http://www.metrowerks.com>.
  179.  
  180. There are also several shareware Basic products.  Chipmunk basic seems to
  181. be highly recommended, but I haven't used it.
  182.  
  183. I'd also check out Prograph classic.  It's a freeware environment for
  184. visual programming.  It's very cool.  <http://www.pictorius.com>.
  185.  
  186. Steve Wilson
  187. Lead Developer of Spreadsheet 2000
  188. Emergent Behavior
  189. (415) 494-6763
  190. Fax (415) 494-0570
  191. mailto:Steve@emer.com
  192. http://www.emer.com
  193. http://members.aol.com/wilsonsd
  194.  
  195. +++++++++++++++++++++++++++
  196.  
  197. >From "Thomas L. Ferrell" <f44@ornl.NoSpam.gov>
  198. Date: 5 Feb 1997 05:28:21 GMT
  199. Organization: Oak Ridge National Lab
  200.  
  201. Steve@emer.com (Steve Wilson) wrote:
  202. >In article <1997Feb4.135607.13976@bvu.edu>, pfannkuchcf@bvu.edu (Colin F.
  203. >Pfannkuch) wrote:
  204. >
  205. >> I am looking for Basic and Pascal compilers for Macs (I was initially looking
  206. >> for Quick Basic and Turbo Pascal, but they apparently aren't made anymore).  
  207. >> The compiler is to be used by High School Students.  
  208. >> I am having trouble finding any compilers at all.  Any suggestions about what
  209. >> compilers are out and what ones are the best is greatly appreciated.
  210. >
  211. >Metrowerks has a pascal compiler.  There have academic discounts. 
  212. ><http://www.metrowerks.com>.
  213. >
  214. >There are also several shareware Basic products.  Chipmunk basic seems to
  215. >be highly recommended, but I haven't used it.
  216. >
  217. >I'd also check out Prograph classic.  It's a freeware environment for
  218. >visual programming.  It's very cool.  <http://www.pictorius.com>.
  219. >
  220. >Steve Wilson
  221. >Lead Developer of Spreadsheet 2000
  222. >Emergent Behavior
  223. >(415) 494-6763
  224. >Fax (415) 494-0570
  225. >mailto:Steve@emer.com
  226. >http://www.emer.com
  227. >http://members.aol.com/wilsonsd
  228.  
  229. Chipmunk is great and is free,but it's just an interpreter. True Basic, the Professional kit, has a compiler, as does Future Basic, =
  230. and (indirectly) VIP Basic. See
  231. http://www.fys.ruu.nl/~bergmann/basic.html
  232.  
  233. tom
  234. (Please remove NoSpam from my email address to reply)
  235.  
  236.  
  237.  
  238. ---------------------------
  239.  
  240. >From jaeho@xs4all.nl (Jae Ho Chang)
  241. Subject: Calculating CPU loading time?
  242. Date: 16 Feb 1997 21:07:30 GMT
  243. Organization: XS4ALL, networking for the masses
  244.  
  245. How can I calculate the CPU loading time (in percentage)?
  246. Thanks,
  247.  
  248. Jae Ho Chang :-)
  249. --
  250. * Sound from Chaos? Visit Chaotic Sound Synthesis Lab.
  251. * Looking for cool Macintosh note utility? Check out FinderNote.
  252.  
  253. at <http://www.xs4all.nl/~jaeho/index.html>
  254.  
  255. +++++++++++++++++++++++++++
  256.  
  257. >From darth@zfn.uni-bremen.de (Jochen Lippert)
  258. Date: Sun, 16 Feb 1997 22:20:23 +0100
  259. Organization: University of Bremen
  260.  
  261. In article <jaeho-1602972210340001@ztm06-06.dial.xs4all.nl>,
  262. jaeho@xs4all.nl (Jae Ho Chang) wrote:
  263.  
  264. > How can I calculate the CPU loading time (in percentage)?
  265. > Thanks,
  266.  
  267. One way would be using the Sound Manager, there is a SoundCommand that
  268. measures CPU load.
  269.  
  270. Jochen Lippert
  271.  
  272. darth@zfn.uni-bremen.de
  273.  
  274. +++++++++++++++++++++++++++
  275.  
  276. >From smfr@santafe.edu (Simon Fraser)
  277. Date: Sun, 16 Feb 1997 21:45:27 -0700
  278. Organization: Santa Fe Institute
  279.  
  280. In article <darth-1602972220230001@m08.informatik.uni-bremen.de>,
  281. darth@zfn.uni-bremen.de (Jochen Lippert) wrote:
  282.  
  283. > In article <jaeho-1602972210340001@ztm06-06.dial.xs4all.nl>,
  284. > jaeho@xs4all.nl (Jae Ho Chang) wrote:
  285. > > How can I calculate the CPU loading time (in percentage)?
  286. > > Thanks,
  287. > One way would be using the Sound Manager, there is a SoundCommand that
  288. > measures CPU load.
  289.  
  290. You could also might be able to use the Process Manager, which accumulates
  291. a count of the number of ticks used by each process.
  292.  
  293. Simon
  294.  
  295. ---------------------------
  296.  
  297. >From stonerfish@aol.com (Stonerfish)
  298. Subject: Can 'clutType" color tables have more than 256 colors
  299. Date: 8 Feb 1997 06:51:37 GMT
  300. Organization: AOL http://www.aol.com
  301.  
  302.  I need to know if a colorTable from a pixel map can have more than ( or
  303. less than ) 256 
  304. colors and meet the following conditions.
  305. The color table must be "clutType".
  306. The pix map  pixel type must be "chunky".
  307. The device must be a screen device.
  308. I know that monitors can display from 1 to millions of colors but have
  309. only seen "clutType" 
  310. color tables use 256 colors.  I have access to only 2 macs.
  311. Any info on colorTables would be a help
  312. Email me if you have the time. 
  313.  
  314. Thanks
  315. Stonerfish@aol.com
  316.  
  317. ---------------------------
  318.  
  319. >From lottsim@aol.com (LOTTSIM)
  320. Subject: ControlList
  321. Date: 15 Feb 1997 04:01:30 GMT
  322. Organization: AOL http://www.aol.com
  323.  
  324. In one INIT that I've written, I'm "checking" to see if a particular
  325. dialog box comes up.  I can't rely on the title (there isn't one), nor on
  326. the refCon.  The only things I have to go on are the dimensions and the
  327. type (both obtained via MacsBug).
  328.  
  329. It would be MUCH easier if I could find out how many different items were
  330. in the dialog box...how would I find this out?
  331.  
  332. Sincerely,
  333.  
  334. Alex Rampell
  335. lottsim@aol.com
  336.  
  337. +++++++++++++++++++++++++++
  338.  
  339. >From jwwalker@kagi.com (James W. Walker)
  340. Date: Fri, 14 Feb 1997 23:32:54 -0800
  341. Organization: Nisus Software, Inc.
  342.  
  343. In article <19970215040100.XAA21628@ladder01.news.aol.com>, lottsim@aol.com
  344. (LOTTSIM) wrote:
  345.  
  346. >It would be MUCH easier if I could find out how many different items were
  347. >in the dialog box...how would I find this out?
  348.  
  349. Call CountDITL, a toolbox routine.
  350. -- 
  351.   --  Jim Walker <http://members.aol.com/jwwalker/>
  352.  
  353. +++++++++++++++++++++++++++
  354.  
  355. >From gherrick@stratos.net
  356. Date: Sun, 16 Feb 1997 11:12:09 -0600
  357. Organization: (none)
  358.  
  359. In article <19970215040100.XAA21628@ladder01.news.aol.com>, lottsim@aol.com
  360. (LOTTSIM) wrote:
  361.  
  362. > In one INIT that I've written, I'm "checking" to see if a particular
  363. > dialog box comes up.  I can't rely on the title (there isn't one), nor on
  364. > the refCon.  The only things I have to go on are the dimensions and the
  365. > type (both obtained via MacsBug).
  366. > It would be MUCH easier if I could find out how many different items were
  367. > in the dialog box...how would I find this out?
  368. > Sincerely,
  369. > Alex Rampell
  370. > lottsim@aol.com
  371.  
  372. ((DialogPeek)theDialog)->items is a handle to the DITL resource which
  373. starts with the number of items (minus 1).
  374. You could also try
  375. ((WindowPeek)theDialog)->controlList which is a handle to the start of a
  376. linked list of control records that you can step through. This should help
  377. you to identify not only the number of items, but everything about the
  378. items (e.g. first item is a checkbox with the title "hello", etc.)
  379.  
  380. I'd suggest you pick up a copy of Inside Macintosh: Mac Toolbox Essentials
  381. for more info on all these things. Or view it in HTML format on apple's web
  382. site.
  383.  
  384. Regards,
  385.  
  386. Graham
  387.  
  388.  
  389. ---------------------------
  390.  
  391. >From reno@pop.bio.aau.dk (Reno Lindberg)
  392. Subject: Converting postscript to text
  393. Date: Thu, 06 Feb 1997 10:45:51 +0100
  394. Organization: DAIMI, Computer Science Dept. at Aarhus University
  395.  
  396. I have a huge PS file. I dont want to print all 400 pages out, but I would
  397. like to be able to use it in a text program so I can search for words in
  398. it. 
  399.  
  400. Do any of you know of a program that can convert a postscript file back to text?
  401.  
  402. reno@pop.bio.aau.dk
  403.  
  404. +++++++++++++++++++++++++++
  405.  
  406. >From redgate@tulsa.oklahoma.net (Kirk Kerekes)
  407. Date: Thu, 06 Feb 1997 10:22:04 -0600
  408. Organization: Red Gate Ranch
  409.  
  410. In article <reno-0602971045520001@klovnen.herb.bio.aau.dk>,
  411. reno@pop.bio.aau.dk (Reno Lindberg) wrote:
  412.  
  413. . I have a huge PS file. I dont want to print all 400 pages out, but I would
  414. . like to be able to use it in a text program so I can search for words in
  415. . it. 
  416.  
  417. "Print" it to the Print2Pict driver, using the text option.
  418.  
  419. -- 
  420. Kirk Kerekes
  421. Redgate@Tulsa.oklahoma.net
  422.  
  423. +++++++++++++++++++++++++++
  424.  
  425. >From shimberg@poboxes.com (Joel Shimberg)
  426. Date: Thu, 06 Feb 1997 13:21:48 -0500
  427. Organization: Not so much that it constrains me.
  428.  
  429. In article <reno-0602971045520001@klovnen.herb.bio.aau.dk>,
  430. reno@pop.bio.aau.dk (Reno Lindberg) wrote:
  431.  
  432. > I have a huge PS file. I dont want to print all 400 pages out, but I would
  433. > like to be able to use it in a text program so I can search for words in
  434. > it. 
  435. > Do any of you know of a program that can convert a postscript file back
  436. to text?
  437.  
  438. I use Snitch to set the creator code to TBB6 and open it in TexEdit, which
  439. has good search/replace capabilities. Since I use Distiller, I don't even
  440. need to return to the original creator, it just opens up.
  441.  
  442. Hope this helps.
  443.  
  444. -- 
  445. (Joel)shimberg@poboxes.com
  446.  
  447. +++++++++++++++++++++++++++
  448.  
  449. >From jdipol@logicon.com (John Di Pol)
  450. Date: 7 Feb 1997 17:01:45 GMT
  451. Organization: Logicon RDA
  452.  
  453. In article <redgate-0602971022050001@aux170.tulsa.oklahoma.net>,
  454. redgate@tulsa.oklahoma.net (Kirk Kerekes) wrote:
  455.  
  456. >In article <reno-0602971045520001@klovnen.herb.bio.aau.dk>,
  457. >reno@pop.bio.aau.dk (Reno Lindberg) wrote:
  458. >
  459. >. I have a huge PS file. I dont want to print all 400 pages out, but I would
  460. >. like to be able to use it in a text program so I can search for words in
  461. >. it. 
  462. >. 
  463. >
  464. >"Print" it to the Print2Pict driver, using the text option.
  465.  
  466. If you have access to Adobe Acrobat Distiller, use Distiller to create an
  467. Acrobat
  468. PDF file.  You can then use the free Adobe Acrobat reader to veiw the file, 
  469. print selected pages (to any printer, even if it's not PS), and search for
  470. text. 
  471.  
  472.  
  473. good luck
  474. --jcd
  475.  
  476. -- 
  477.  
  478. John C. Di Pol
  479. Logicon RDA
  480. (310)645-1122 x 356
  481.  
  482. +++++++++++++++++++++++++++
  483.  
  484. >From george@mech.seas.upenn.edu ( George Jefferson )
  485. Date: 7 Feb 1997 17:25:26 GMT
  486. Organization: Mechanical Engineering
  487.  
  488. :. I have a huge PS file. I dont want to print all 400 pages out, but I would
  489. :. like to be able to use it in a text program so I can search for words in
  490. :. it. 
  491. :
  492. :"Print" it to the Print2Pict driver, using the text option.
  493.  
  494. I dont think thats going to work..print from what? If you print
  495. from ghostscript I'm certain it sends only a bit map to the printer
  496. driver.
  497.  
  498. The best way to do it may actually be it image it then run it through
  499. some OCR program to extract the text..
  500.  
  501.  
  502. +++++++++++++++++++++++++++
  503.  
  504. >From kempkec@multiad.com (Christopher Kempke)
  505. Date: Fri, 07 Feb 1997 13:15:06 -0600
  506. Organization: Multi-Ad Services, Inc.
  507.  
  508. [Someone] wrote:
  509. > :. I have a huge PS file. I dont want to print all 400 pages out, but I would
  510. > :. like to be able to use it in a text program so I can search for words in
  511. > :. it. 
  512.  
  513. This won't work in all cases, but PostScript often encloses strings in
  514. parenthesis: (Hello World!).  If the application that generated the PS
  515. file
  516. was consistent about that, you might be able to write a program to just
  517. extract the user strings.
  518.  
  519. There's all sorts of things that could break this, but it might work in a
  520. pinch.
  521.  
  522. [I trimmed the newsgroups, I hope the original poster sees this...]
  523.  
  524. --Chris
  525.  
  526. -- 
  527. Christopher Kempke, kempkec@multiad.com
  528. Sr. Software Architect, Multi-Ad Services Inc.
  529. (I do not speak for my company, profession, or species)
  530.  
  531. +++++++++++++++++++++++++++
  532.  
  533. >From shimberg@poboxes.com (Joel Shimberg)
  534. Date: Fri, 07 Feb 1997 14:54:48 -0500
  535. Organization: Not so much that it constrains me.
  536.  
  537. In article <5dfoi6$dbl@netnews.upenn.edu>, george@mech.seas.upenn.edu (
  538. George Jefferson ) wrote:
  539.  
  540. > :. I have a huge PS file. I dont want to print all 400 pages out, but I would
  541. > :. like to be able to use it in a text program so I can search for words in
  542. > :. it. 
  543.  
  544. I use Snitch to change file type to TEXT, and creator to TBB6. I then open
  545. up the file in TexEdit+, and use that to search/replace as needed. Acrobat
  546. Distiller reads the resulting text file without any problem, unless I've
  547. screwed it up in modifying it. This is fairly quick, efficient, and cheap.
  548.  
  549. -- 
  550. (Joel)shimberg@poboxes.com
  551.  
  552. +++++++++++++++++++++++++++
  553.  
  554. >From Jim Land <jland@bigfoot.com>
  555. Date: Fri, 07 Feb 1997 13:45:37 -0600
  556. Organization: (none)
  557.  
  558. Reno Lindberg wrote:
  559. > I have a huge PS file. I dont want to print all 400 pages out, but I would
  560. > like to be able to use it in a text program so I can search for words in
  561. > it.
  562. > Do any of you know of a program that can convert a postscript file back to text?
  563.  
  564. Try pstotext, invented and optimized to do just what you require.
  565.  
  566. http://www.research.digital.com/SRC/virtualpaper/pstotext.html
  567. for more information.  Note that pstotext is included with current
  568. version of gsview, and requires ghostscript to run.
  569.  
  570. -- 
  571. Jim Land            It's useless to expect rational behavior from  
  572. jland@bigfoot.com      the people you work with.  --Scott Adams
  573. - -----------------------------------------------------------------
  574.  
  575. +++++++++++++++++++++++++++
  576.  
  577. >From davep@best.nospam.com (Dave Polaschek)
  578. Date: Fri, 07 Feb 1997 16:53:33 -0600
  579. Organization: Polaschek Publishing
  580.  
  581. In article <reno-0602971045520001@klovnen.herb.bio.aau.dk>,
  582. reno@pop.bio.aau.dk (Reno Lindberg) wrote:
  583.  
  584. > I have a huge PS file. I dont want to print all 400 pages out, but I would
  585. > like to be able to use it in a text program so I can search for words in
  586. > it. 
  587. > Do any of you know of a program that can convert a postscript file back
  588. to text?
  589.  
  590. I don't know of anything off the top of my head, but one thing you can do
  591. is use the SendPS MPW tool and a PostScript printer to strip out the text
  592. for you. You'll need a small PostScript program which basically redefines
  593. the show operator (and its variants, possibly) to echo the text back to
  594. you (using the = built-in, most likely). Send that program to the printer
  595. first (using an exitserver to make it permanent), then send your file,
  596. and capture the output the comes back from the printer to a text file.
  597. Voila.
  598.  
  599. If you can't find such a PostScript program in the comp.lang.postscript
  600. archives (where have they moved to, anyhow?) I'm sure someone in that
  601. newsgroup can help.
  602.  
  603. -DaveP
  604.  
  605. -- 
  606. Dave Polaschek - personal: davep@best.com or davep@mn.uswest.net
  607. PGP key and other spiffy things at <http://www.best.com/~davep/>
  608.  
  609. +++++++++++++++++++++++++++
  610.  
  611. >From "J. Chapman Flack" <flack@cs.purdue.edu>
  612. Date: Fri, 07 Feb 1997 17:52:09 -0500
  613. Organization: Purdue University
  614.  
  615. > I dont think thats going to work..print from what? If you print
  616. > from ghostscript I'm certain it sends only a bit map to the printer
  617. > driver.
  618. > The best way to do it may actually be it image it then run it through
  619. > some OCR program to extract the text..
  620.  
  621. Hmm...I'd hate to do that; I just don't hve enough confidence in the
  622. quality of OCR, though it may have improved a lot since I last tried
  623. to OCR much.  Intuitively, it seems the text is still closer to text
  624. within the PS file.
  625.  
  626. Has anybody ever tried something that involves just redefining /show
  627. to accumulate strings in memory somewhere?  A redefinition of /moveto
  628. would be in order, and some calculation of position to see which strings
  629. wind up adjacent.  Then redefine /showpage to just print (i.e. to
  630. stdout,
  631. not the raster) the accumulated strings, according to position down the
  632. page.
  633.  
  634. I've never tried to do this, just thinking aloud; this involves some
  635. heavy assumptions, but it wouldn't surprise me if it worked pretty
  636. well for a large class of reasonable page layouts.
  637.  
  638. -Chap
  639.  
  640. +++++++++++++++++++++++++++
  641.  
  642. >From Helge Blischke <H.Blischke@srz-berlin.de>
  643. Date: Sat, 08 Feb 1997 22:07:23 +0100
  644. Organization: (none)
  645.  
  646. Joel Shimberg wrote:
  647. > In article <reno-0602971045520001@klovnen.herb.bio.aau.dk>,
  648. > reno@pop.bio.aau.dk (Reno Lindberg) wrote:
  649. > > I have a huge PS file. I dont want to print all 400 pages out, but I would
  650. > > like to be able to use it in a text program so I can search for words in
  651. > > it.
  652. > > Do any of you know of a program that can convert a postscript file back
  653. > to text?
  654. > I use Snitch to set the creator code to TBB6 and open it in TexEdit, which
  655. > has good search/replace capabilities. Since I use Distiller, I don't even
  656. > need to return to the original creator, it just opens up.
  657. > Hope this helps.
  658. > --
  659. > (Joel)shimberg@poboxes.com
  660. You could use Ghostscript's ps2ascii.ps utility.
  661. If the PostScript job you have is not too messed up, you'll
  662. get reasonable results.
  663. Helge Blischke
  664.  
  665. ---------------------------
  666.  
  667. >From "J. Zack" <wavesoh@earthlink.net>
  668. Subject: CopyBits
  669. Date: Sun, 02 Feb 1997 03:46:20 -0500
  670. Organization: Earthlink Network, Inc.
  671.  
  672. I'm new to programming.
  673.  
  674. Does Anybody know if there is a way to get CopyBits to 
  675. display different sprites at different frame rates at the same time?
  676. I'm going for realism, not neccesarily speed.
  677.  
  678. Thanks,
  679. J. Zack
  680. wavesoh@earthlink.net
  681.  
  682. +++++++++++++++++++++++++++
  683.  
  684. >From mvanalst@rbi.com (Mark Van Alstine)
  685. Date: Tue, 04 Feb 1997 04:59:53 -0700
  686. Organization: rbi software systems
  687.  
  688. In article <32F4545C.2C28@earthlink.net>, wavesoh@earthlink.net wrote:
  689.  
  690. > I'm new to programming.
  691. > Does Anybody know if there is a way to get CopyBits to 
  692. > display different sprites at different frame rates at the same time?
  693. > I'm going for realism, not neccesarily speed.
  694.  
  695. CopyBits is frame-rate independant. (Or rather, frame-rate ignorant.) If
  696. one needs to tie sprite blitting to frame rates this would likely be done
  697. via a VBL task to set the approprite flag(s) for each sprite. During the
  698. app's main loop the sprites' flag(s) would be checked and the sprites
  699. blitted accordingly via CopyBits. 
  700.  
  701.  
  702. Mark
  703.  
  704. - ------------------------------------------------------------------------------
  705. "Gradually it was disclosed to me that the line separating good and evil passes 
  706. not through states, nor between classes, nor between political parties--but
  707. right through every human heart--and all human hearts." 
  708.  
  709. -- Alexander Solzhenitsyn, "The Gulag Archipelago"
  710. - ------------------------------------------------------------------------------
  711.  
  712. +++++++++++++++++++++++++++
  713.  
  714. >From "J. Zack" <wavesoh@earthlink.net>
  715. Date: Thu, 06 Feb 1997 01:03:20 -0500
  716. Organization: Earthlink Network, Inc.
  717.  
  718. Mark Van Alstine wrote:
  719. > In article <32F4545C.2C28@earthlink.net>, wavesoh@earthlink.net wrote:
  720. > > I'm new to programming.
  721. > >
  722. > > Does Anybody know if there is a way to get CopyBits to
  723. > > display different sprites at different frame rates at the same time?
  724. > > I'm going for realism, not neccesarily speed.
  725. > CopyBits is frame-rate independant. (Or rather, frame-rate ignorant.) If
  726. > one needs to tie sprite blitting to frame rates this would likely be done
  727. > via a VBL task to set the approprite flag(s) for each sprite. During the
  728. > app's main loop the sprites' flag(s) would be checked and the sprites
  729. > blitted accordingly via CopyBits.
  730. > Mark
  731. > --------------------------------------------------------------------------------
  732. > "Gradually it was disclosed to me that the line separating good and evil passes
  733. > not through states, nor between classes, nor between political parties--but
  734. > right through every human heart--and all human hearts."
  735. > -- Alexander Solzhenitsyn, "The Gulag Archipelago"
  736. > --------------------------------------------------------------------------------
  737.  
  738. Since I posted the above message, I've discovered SpriteWorld located at 
  739. http://members.aol.com/SpriteWld2/index.html and it seems to be very easy to use.
  740. I'm sorry to say I don't understand what your talking about in your answer - 
  741. maybe someday, obviously I'm very new to programming :)
  742.  
  743. Thanks!
  744. Thanks,
  745. J. Zack
  746. wavesoh@earthlink.net
  747.  
  748. (I have to think of a neat quote to put at the bottom of my postings like 
  749. everybody else)
  750.  
  751. +++++++++++++++++++++++++++
  752.  
  753. >From Tom Rockwell <tjr0868@ritvax.isc.rit.edu>
  754. Date: Fri, 07 Feb 1997 14:02:59 +0000
  755. Organization: Sudden Death
  756.  
  757. J. Zack wrote:
  758. > I'm new to programming.
  759. > Does Anybody know if there is a way to get CopyBits to
  760. > display different sprites at different frame rates at the same time?
  761. > I'm going for realism, not neccesarily speed.
  762. > Thanks,
  763. > J. Zack
  764. > wavesoh@earthlink.net
  765.  
  766. I would guess you'd have to do it manually.  If, for example (I'll use a
  767. nice even one) sprite X moves at 5 fps and sprite Y moves at 10 fps then
  768. call CopyBits() to move Y, then both X and Y, then just Y, then both X
  769. and Y, etc.  If one moves at 13 and the other at 15 then it probably
  770. won't be smooth whatever you do.
  771.  
  772.                                          ->Later.....Spice
  773.  
  774. ---------------------------
  775.  
  776. >From rspence3@osf1.gmu.edu (Rspence3)
  777. Subject: Disable shutdown key?
  778. Date: Sun, 26 Jan 1997 14:30:37 -0500
  779. Organization: George Mason University, Fairfax, Virginia, USA
  780.  
  781. Is there an easy way to disable the keyboard's shutdown key from within an
  782. app?  I have written a few C programs to entertain the preschoolers in my
  783. house, but now they know that if they hit that key, I have to come running
  784. over to hit cancel.  This is much more entertaining than anything that I
  785. can program the computer to do.  The programs don't respond to shutdown
  786. events, so it doesn't shut down the computer, but if it happens enough,
  787. the computer eventually crashes.  Any other parental programmers out
  788. there?
  789.  
  790. Cheers, Rick
  791.  
  792. +++++++++++++++++++++++++++
  793.  
  794. >From "Seth Hill" <ferris@proaxis.com>
  795. Date: 31 Jan 97 21:49:59 -0800
  796. Organization: ProAxis Communications, Inc.
  797.  
  798. >Is there an easy way to disable the keyboard's shutdown key from within an
  799. >app?  I have written a few C programs to entertain the preschoolers in my
  800. >house, but now they know that if they hit that key, I have to come running
  801. >over to hit cancel.  This is much more entertaining than anything that I
  802. >can program the computer to do.  The programs don't respond to shutdown
  803. >events, so it doesn't shut down the computer, but if it happens enough,
  804. >the computer eventually crashes.  Any other parental programmers out
  805. >there?
  806. >
  807. >Cheers, Rick
  808.  
  809. ftp to your favorite info-mac mirror and get this file:
  810. info-mac/cfg/no-power-off-key-12.hqx
  811.  
  812. It's a piece of Apple Sample code by Brian Bechtel <blob@apple.com> that
  813. (you guessed it) deactivates the power key. It's an extension but the code
  814. is well commented and it's not too difficult to make it work from inside an
  815. application.
  816.  
  817. --
  818. Seth Hill
  819.  
  820.  
  821.  
  822.  
  823. +++++++++++++++++++++++++++
  824.  
  825. >From rspence3@osf1.gmu.edu (Rspence3)
  826. Date: Sun, 02 Feb 1997 15:32:09 -0500
  827. Organization: George Mason University, Fairfax, Virginia, USA
  828.  
  829. > ftp to your favorite info-mac mirror and get this file:
  830. > info-mac/cfg/no-power-off-key-12.hqx
  831. > It's a piece of Apple Sample code by Brian Bechtel <blob@apple.com> that
  832. > (you guessed it) deactivates the power key. It's an extension but the code
  833. > is well commented and it's not too difficult to make it work from inside an
  834. > application.
  835. > --
  836. > Seth Hill
  837.  
  838. Just in case anyone wants to know:
  839.  
  840. Seth's suggestion worked perfectly.  It took me about two minutes, and
  841. three cut and pastes to add this routine to MyInitRoutine();.  Now if I
  842. could get some code which protects my keyboard from peanut butter and
  843. jelly, I would really be in business!
  844.  
  845. Cheers, Rick
  846.  
  847. +++++++++++++++++++++++++++
  848.  
  849. >From "Seth Hill" <ferris@proaxis.com>
  850. Date: 8 Feb 97 00:05:47 -0800
  851. Organization: ProAxis Communications, Inc.
  852.  
  853. > Now if I could get some code which protects my keyboard from peanut
  854. > butter and jelly, I would really be in business!
  855. >
  856. >Cheers, Rick
  857. >
  858.  
  859. That's the real trick. :-)
  860.  
  861. --
  862. Seth Hill
  863.  
  864.  
  865.  
  866. ---------------------------
  867.  
  868. >From gutman819@aol.com (Gutman 819)
  869. Subject: DrawPicture
  870. Date: 1 Feb 1997 21:32:15 GMT
  871. Organization: AOL http://www.aol.com
  872.  
  873. Is there any way that I can use the DrawPicture() call to draw a circular
  874. picture to the screen without having a big white square around it?  If
  875. not, how could I draw a circular picture to the screen?
  876.  
  877. +++++++++++++++++++++++++++
  878.  
  879. >From Erin O Keenan <lostpoet@pipeline.com>
  880. Date: Sat, 01 Feb 1997 17:26:33 -0800
  881. Organization: Fission
  882.  
  883. Gutman 819 wrote:
  884. > Is there any way that I can use the DrawPicture() call to draw a circular
  885. > picture to the screen without having a big white square around it?  If
  886. > not, how could I draw a circular picture to the screen?
  887.  
  888. Well, this is only going to work if you have SuperPaint, but here goes:
  889.  
  890. Paste your picture into SuperPaint as a draw object. Now, set the ink to
  891. "Transparent Background" (or something like that) and copy the
  892. picture... The white border is no longer part of the picture (and won't
  893. draw), so just paste back into your resources... Draw as normal.
  894.  
  895. Love, Peace, and stuff,
  896. Erin
  897.  
  898. +++++++++++++++++++++++++++
  899.  
  900. >From "Ron W. Miller" <ronm@portsoft.com>
  901. Date: Sat, 01 Feb 1997 16:51:00 +0000
  902. Organization: Portland Software, Inc.
  903.  
  904. > Is there any way that I can use the DrawPicture() call to draw a circular
  905. > picture to the screen without having a big white square around it?  If
  906. > not, how could I draw a circular picture to the screen?
  907.  
  908.  
  909. I don't think that you can do it with DrawPicture.  Using CopyMask to
  910. blit your bitmap to the screen should do this for you quite nicely. 
  911. CopyMask is somewhat slow though, so it won't work as well for a bigger
  912. picture.
  913.  
  914. Ron W. Miller
  915.  
  916.  
  917.  
  918. - ---------------------------------+
  919. Ron W. Miller                      +
  920. Senior Software Engineer           +
  921. Portland Software Inc.             +
  922. Portland, Oregon USA               +
  923. <mailto:ronm@portsoft.com>         +
  924. <http:www.portsoft.com>            +
  925. - ---------------------------------+
  926.  
  927. +++++++++++++++++++++++++++
  928.  
  929. >From trickys@ix.netcom.com (Tricky S)
  930. Date: Sat, 01 Feb 1997 22:07:34 -0600
  931. Organization: Tricky S Software Factory
  932.  
  933. All you need to do is to make sure that your picture's copy mode is set to
  934. anything that has transparent white pixels, such as 'srcOr' copy mode.
  935. This is probably what SuperPaint is doing. Deneba's Canvas lets you select
  936. from several copy modes.
  937.  
  938. In article <32F3ED36.2729@pipeline.com>, lostpoet@pipeline.com wrote:
  939.  
  940. > Gutman 819 wrote:
  941. > > 
  942. > > Is there any way that I can use the DrawPicture() call to draw a circular
  943. > > picture to the screen without having a big white square around it?  If
  944. > > not, how could I draw a circular picture to the screen?
  945. > Well, this is only going to work if you have SuperPaint, but here goes:
  946. > Paste your picture into SuperPaint as a draw object. Now, set the ink to
  947. > "Transparent Background" (or something like that) and copy the
  948. > picture... The white border is no longer part of the picture (and won't
  949. > draw), so just paste back into your resources... Draw as normal.
  950. > Love, Peace, and stuff,
  951. > Erin
  952.  
  953.  _____________
  954. \ ____________\
  955. ||  _________  | Stefan "Tricky S" Sinclair
  956. || /@--------\ | <mailto:trickys@ix.netcom.com>
  957. || |         | | <http://cse.unl.edu/~sinclair/SpriteFight/sf2k.html>
  958. || |         | | 
  959. || \_________/ | The label said "Requires Windows95
  960. ||       ____  | or better" so I bought a Mac.
  961. || o Mac       |
  962. \|_____________|
  963.  \|___________|
  964.  
  965. +++++++++++++++++++++++++++
  966.  
  967. >From ingemar@lysator.liu.se (Ingemar Ragnemalm)
  968. Date: 2 Feb 1997 08:38:44 GMT
  969. Organization: Linkˆping University, Sweden
  970.  
  971. gutman819@aol.com (Gutman 819) writes:
  972.  
  973. >Is there any way that I can use the DrawPicture() call to draw a circular
  974. >picture to the screen without having a big white square around it?  If
  975. >not, how could I draw a circular picture to the screen?
  976.  
  977. That depends on your drawing program. Some drawing programs are stupid and
  978. gives you that white borders, and some do it right.
  979.  
  980. --
  981. Ingemar Ragnemalm
  982. E-mail address: ingemar@lysator.liu.se
  983. Shared libraries/DLLs are bad for your health.
  984.  
  985. +++++++++++++++++++++++++++
  986.  
  987. >From heaney@crl.com (John S. Heaney)
  988. Date: 3 Feb 1997 15:09:00 -0800
  989. Organization: CRL Dialup Internet Access    (415) 705-6060  [Login: guest]
  990.  
  991. In article <19970201213200.QAA10867@ladder01.news.aol.com>,
  992. Gutman 819 <gutman819@aol.com> wrote:
  993. >Is there any way that I can use the DrawPicture() call to draw a circular
  994. >picture to the screen without having a big white square around it?  If
  995. >not, how could I draw a circular picture to the screen?
  996.  
  997. The short answer is yes, DrawPicture can draw a picture into any shape 
  998. you want.
  999.  
  1000. A PictureHandle drawn with DrawPicture is not merely a bitmap or a 
  1001. pixmap; it's actually a series of drawing commands, of which a bitmap or 
  1002. pixmap may be just one element. A PictureHandle is created by calling 
  1003. OpenPicture, issueing some number of QuickDraw commands and then calling 
  1004. ClosePicture. The commands, and the data associated with the commands, 
  1005. are saved in the PictureHandle. The commands are then executed 
  1006. sequencially by DrawPicture.
  1007.  
  1008. There are two ways (that I can think of) that a Picture can draw an image
  1009. into a non-rectangular area. One way is to use a background color and draw
  1010. with the srcOr mode. The background colored pixels will not be drawn. This
  1011. is like a blue screen type thing in movie parlance. 
  1012.  
  1013. The other way is to punch a hole in the screen with a 1-bit mask and then 
  1014. draw into the hole with the srcOr mode. The benefit of this method is 
  1015. that you can have background colored pixels as part of your image. This 
  1016. is the way icons are drawn. Check out 'cicn' resources.
  1017.  
  1018. The trick then is to use a tool that will allow you to create a PICT
  1019. resource or picture file that will have the correct drawing commands. 
  1020. Most drawing and screen capture programs save only bitmaps or pixmaps to
  1021. the picture. But there are some that do more. 
  1022.  
  1023. I use Canvas. Canvas allows you to set up the QuickDraw commands the way
  1024. you want. It also allows you to create a separate bitmap mask and color
  1025. image in the same file as separate objects. You can then Align them and
  1026. Group them and copy them as a single PICT resource, which you can then
  1027. paste into a file with a resource editor. It's pretty compilicated, but it
  1028. works. 
  1029.  
  1030. Also, Resorcerer has a PICT resource de/compiler. It breaks a PICT 
  1031. resource down into its components. You can then edit them. In your case, 
  1032. you may be able to open your current image and change the transfer mode 
  1033. and be done. Sometimes it's that easy.
  1034.  
  1035. Sometimes it isn't. :)
  1036.  
  1037. Good luck.
  1038. -- 
  1039. John Heaney              Time flies whether you're having fun or not.
  1040. heaney@crl.com
  1041.  
  1042. +++++++++++++++++++++++++++
  1043.  
  1044. >From refiegle@mail.delcoelect.com (Richard E. Fiegle)
  1045. Date: Wed, 05 Feb 1997 11:37:16 -0600
  1046. Organization: Delco Electronics
  1047.  
  1048. In article <19970201213200.QAA10867@ladder01.news.aol.com>,
  1049. gutman819@aol.com (Gutman 819) wrote:
  1050.  
  1051. > Is there any way that I can use the DrawPicture() call to draw a circular
  1052. > picture to the screen without having a big white square around it?  If
  1053. > not, how could I draw a circular picture to the screen?
  1054.  
  1055. One way would be to set the ClipRgn to the circular region (if you know
  1056. how to calculate it before it's actually drawn  :-), then call DrawPicture(),
  1057. then restore the ClipRgn.
  1058.  
  1059. --
  1060. Richard E. Fiegle
  1061. Opinions expressed are mine, not necessarily those of my employer
  1062.  
  1063. +++++++++++++++++++++++++++
  1064.  
  1065. >From Shapiro@AOL.com (Eric Shapiro)
  1066. Date: 7 Feb 1997 00:18:59 GMT
  1067. Organization: Relium Corp.
  1068.  
  1069. In article <19970201213200.QAA10867@ladder01.news.aol.com>,
  1070. gutman819@aol.com (Gutman 819) wrote:
  1071.  
  1072. > Is there any way that I can use the DrawPicture() call to draw a circular
  1073. > picture to the screen without having a big white square around it?  If
  1074. > not, how could I draw a circular picture to the screen?
  1075.  
  1076. If the PICT has high-level drawing calls rather than a bitmap, 
  1077. then you won't get the ugly white rectangle.
  1078.  
  1079. Something like:
  1080.  
  1081. OpenPicture();
  1082. SetRect( &r, 20, 20, 50 50 );
  1083. FrameOval( &r );
  1084. ClosePicture();
  1085.  
  1086.  // other stuff here...
  1087.  
  1088. DrawPicture( myPict );
  1089.  
  1090.  
  1091. You will have to create the picture yourself or by using a drawing
  1092. tool (like MacDraw) rather than a painting tool (like PhotoShop).
  1093.  
  1094.  -Eric
  1095.  
  1096. -- 
  1097. Eric Shapiro
  1098. Relium Corp.
  1099. shapiro@aol.com
  1100.  
  1101. ---------------------------
  1102.  
  1103. >From John Stiles <jstiles@uclink4.berkeley.edu>
  1104. Subject: Embedding a QuickTime into an app
  1105. Date: Mon, 03 Feb 1997 02:51:17 -0600
  1106. Organization: Deja News Usenet Posting Service
  1107.  
  1108. I'm looking to stick a little QuickTime movie into my about box. Nothing
  1109. big, just a 50K looping ditty. Currently, however, the only way I can
  1110. figure to open a QuickTime movie is in its own separate file. This poses a
  1111. problem, as the application should be self-contained.
  1112.  
  1113. It would be perfect if I could do something like flatten the movie, stick
  1114. it into a resource, and load it from there. Is such a thing possible? I
  1115. suppose I could load the resource, quickly copy its contents into a
  1116. temporary file, and tell QuickTime to open that, but that's a gigantic
  1117. kludge--is there any more elegant way?
  1118.  
  1119. Thanks for any help.
  1120.  
  1121. *Stiles
  1122.  
  1123. PS How do you tell QuickTime to do looping? Currently, I just say in my
  1124. loop:
  1125. if( IsMovieDone( logoMovie ) ) GoToBeginningOfMovie( logoMovie );
  1126.  
  1127. And that works fine, but I was under the impression that there was a
  1128. cleaner way.
  1129.  
  1130. *Stiles
  1131.  
  1132. - -----------------==== Posted via Deja News ====-----------------------
  1133.       http://www.dejanews.com/     Search, Read, Post to Usenet
  1134.  
  1135. +++++++++++++++++++++++++++
  1136.  
  1137. >From SouthSide@kagi.com (Bob Bradley)
  1138. Date: 4 Feb 1997 05:53:39 GMT
  1139. Organization: SPC
  1140.  
  1141. In article <854959050.13887@dejanews.com>, jstiles@uclink4.berkeley.edu wrote:
  1142.  
  1143. > I'm looking to stick a little QuickTime movie into my about box. Nothing
  1144. > big, just a 50K looping ditty. Currently, however, the only way I can
  1145. > figure to open a QuickTime movie is in its own separate file. This poses a
  1146. > problem, as the application should be self-contained.
  1147. > It would be perfect if I could do something like flatten the movie, stick
  1148. > it into a resource, and load it from there. Is such a thing possible?
  1149.  
  1150. You can use NewMovieFromHandle.
  1151.  
  1152. +++++++++++++++++++++++++++
  1153.  
  1154. >From Online@MacTech.com ( nick.c @MT )
  1155. Date: Tue, 04 Feb 1997 13:57:54 -0800
  1156. Organization: MacTech Magazine
  1157.  
  1158.  
  1159.  
  1160. jstiles@uclink4.berkeley.edu wrote:
  1161.  
  1162. >PS How do you tell QuickTime to do looping? Currently, I just say in my
  1163. >loop:
  1164. >if( IsMovieDone( logoMovie ) ) GoToBeginningOfMovie( logoMovie );
  1165. >
  1166. >And that works fine, but I was under the impression that there was a
  1167. >cleaner way.
  1168.  
  1169.  
  1170.    You can use MCDoAction to tell the movie controller to loop.
  1171.      Like this:
  1172.  
  1173.       MCDoAction( myController, mcActionSetLooping, (Ptr)true ); 
  1174.  
  1175.  
  1176.    BTW, Dan Sydow wrote a whole chapter about QuickTime movie
  1177.      implementation in his _Graphics and Sound Programming_
  1178.      book (ISBN: 1-55851-442-2), including movie looping etc.
  1179.      If you're interested in doing stuff with QuickTime, the
  1180.      book is really something to put on your shopping list.
  1181.  
  1182.  
  1183.  
  1184.  
  1185. ____Nicholas C. DeMello, Ph.D.___________________________________________
  1186. "MacTech Online"--MacTech Magazine, for Mac OS Programmers and Developers
  1187.      http://www.MacTech.com/
  1188.                                         _/   _/  _/  _/_/_/   _/   _/  
  1189.    Chemistry: Nick@chem.UCLA.edu       _/_/ _/  _/  _/   _/  _/_/_/ 
  1190.      MacTech: Online@MacTech.com      _/ _/_/  _/  _/       _/ _/    
  1191.         http://www.chem.ucla.edu/~nick/   _/  _/   _/_/_/  _/   _/     
  1192.  
  1193. +++++++++++++++++++++++++++
  1194.  
  1195. >From David Reiss <reiss@astro.washington.edu>
  1196. Date: Tue, 04 Feb 1997 14:54:52 -0800
  1197. Organization: http://www.astro.washington.edu/reiss
  1198.  
  1199. I was going to post this exact same question.  I do the same thing but I
  1200. get
  1201. a 'jump' when it re-starts the movie.  Is there a clean way to do this
  1202. if you're
  1203. not using a movie controller?
  1204.  
  1205. -David
  1206.  
  1207. nick.c @MT wrote:
  1208. > jstiles@uclink4.berkeley.edu wrote:
  1209. > >PS How do you tell QuickTime to do looping? Currently, I just say in my
  1210. > >loop:
  1211. > >if( IsMovieDone( logoMovie ) ) GoToBeginningOfMovie( logoMovie );
  1212. > >
  1213. > >And that works fine, but I was under the impression that there was a
  1214. > >cleaner way.
  1215. >    You can use MCDoAction to tell the movie controller to loop.
  1216. >      Like this:
  1217. >       MCDoAction( myController, mcActionSetLooping, (Ptr)true );
  1218. >    BTW, Dan Sydow wrote a whole chapter about QuickTime movie
  1219. >      implementation in his _Graphics and Sound Programming_
  1220. >      book (ISBN: 1-55851-442-2), including movie looping etc.
  1221. >      If you're interested in doing stuff with QuickTime, the
  1222. >      book is really something to put on your shopping list.
  1223. > ____Nicholas C. DeMello, Ph.D.___________________________________________
  1224. > "MacTech Online"--MacTech Magazine, for Mac OS Programmers and Developers
  1225. >      http://www.MacTech.com/
  1226. >                                         _/   _/  _/  _/_/_/   _/   _/
  1227. >    Chemistry: Nick@chem.UCLA.edu       _/_/ _/  _/  _/   _/  _/_/_/
  1228. >      MacTech: Online@MacTech.com      _/ _/_/  _/  _/       _/ _/
  1229. >         http://www.chem.ucla.edu/~nick/   _/  _/   _/_/_/  _/   _/
  1230.  
  1231. +++++++++++++++++++++++++++
  1232.  
  1233. >From Online@MacTech.com ( nick.c @MT )
  1234. Date: Tue, 04 Feb 1997 19:44:08 -0800
  1235. Organization: MacTech Magazine
  1236.  
  1237.  
  1238.  
  1239. jstiles@uclink4.berkeley.edu wrote:
  1240.  
  1241. >I'm looking to stick a little QuickTime movie into my about box. Nothing
  1242. >big, just a 50K looping ditty. Currently, however, the only way I can
  1243. >figure to open a QuickTime movie is in its own separate file. This poses a
  1244. >problem, as the application should be self-contained.
  1245. >
  1246. >It would be perfect if I could do something like flatten the movie, stick
  1247. >it into a resource, and load it from there. Is such a thing possible? 
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  // To create a movie resource, use your NewMovieFromFile() routine to get
  1253.  //    a movie object: myMovie
  1254.   
  1255.    myErr = NewMovieFromFile ( myMovie, resRefNum, resId, resName, 
  1256.                                        newMovieFlags, nil);
  1257.    
  1258.  // Then use PutMovieIntoHandle to put that object into a resource file. 
  1259.    
  1260.    myErr = PutMovieIntoHandle (myMovie, myHandle);
  1261.    
  1262.  // Then copy whatever movies you've made from this resource file into your
  1263.  //   apps resource fork with Resorcerer or ResEdit.  When you want to
  1264.  //   play the movie use:
  1265.    
  1266.    myErr = NewMovieFromHandle (myMovie, myHandle, newMovieActive, nil);
  1267.    
  1268.    
  1269.  
  1270.  
  1271.    Hope this helps,
  1272.  
  1273.  
  1274.  
  1275.  
  1276. ____Nicholas C. DeMello, Ph.D.___________________________________________
  1277. "MacTech Online"--MacTech Magazine, for Mac OS Programmers and Developers
  1278.      http://www.MacTech.com/
  1279.                                         _/   _/  _/  _/_/_/   _/   _/  
  1280.    Chemistry: Nick@chem.UCLA.edu       _/_/ _/  _/  _/   _/  _/_/_/ 
  1281.      MacTech: Online@MacTech.com      _/ _/_/  _/  _/       _/ _/    
  1282.         http://www.chem.ucla.edu/~nick/   _/  _/   _/_/_/  _/   _/     
  1283.  
  1284. +++++++++++++++++++++++++++
  1285.  
  1286. >From "John Dalgliesh" <s2191331@cse.unsw.edu.au>
  1287. Date: 6 Feb 97 13:45:22 +1000
  1288. Organization: University of New South Wales
  1289.  
  1290. >I was going to post this exact same question.  I do the same thing but I
  1291. >get
  1292. >a 'jump' when it re-starts the movie.  Is there a clean way to do this
  1293. >if you're
  1294. >not using a movie controller?
  1295.  
  1296. Yep. The following line works for me...
  1297.  
  1298.     SetTimeBaseFlags(GetMovieTimeBase(theMovie), loopTimeBase);
  1299.  
  1300. {P^/
  1301.  
  1302.  
  1303.  
  1304. ---------------------------
  1305.  
  1306. >From bwood@uiuc.edu (Brett Wood)
  1307. Subject: How do I use BitMapToRegion?
  1308. Date: Thu, 06 Feb 1997 01:51:24 -0500
  1309. Organization: University of Illinois
  1310.  
  1311. Here's the scenario:  I have an offscreen graphics world which contains an image
  1312. generated by using SetCPixel for whichever pixels are part of the image.  Any
  1313. pixels within the bounds of the world which are a part of the "background" have
  1314. had nothing done to them since the world's creation.  Now I want to copy this
  1315. image onto another image, while preserving the background.  I create a new 
  1316. region and pass this region to BitMapToRegion, using the portBits of the
  1317. offscreen world from which I'll be copying.  Then I use this region as the mask
  1318. region in the call to CopyBits.  I thought it was pretty straightforward, but
  1319. using this procedure, I don't see any of the newly copied picture.  (I also
  1320. tried inverting the region, just in case, but that didn't work either.)  When I
  1321. use no mask region, everthing works fine (except, of course, the remainder of
  1322. the rectangle is pure white, rather than having the original background), so I
  1323. know the only problem is with generating the mask region.
  1324.  
  1325. In case you had trouble following that, here's a code snippet:
  1326.   
  1327.    RgnHandle mask = NewRgn();
  1328.    BitMapToRegion(mask, &((GrafPtr)picGWorld)->portBits);
  1329.    //InvertRgn(mask); (tried with and without this)
  1330.    CopyBits(&((GrafPtr)picGWorld)->portBits, &port->portBits,
  1331.             &srcRect, &destRect, srcCopy, mask);
  1332.  
  1333. Apparently I do not understand how to use BitMapToRegion, and as the IM
  1334. documention (in Basic Quickdraw) was not very helpful, I was hoping someone
  1335. could give me a brief explanation as to why the above technique doesn't work.
  1336.  
  1337. TIA,
  1338. Brett Wood
  1339.  
  1340. +++++++++++++++++++++++++++
  1341.  
  1342. >From Carl R. Osterwald <carl_osterwald@nrel.SPAM-NYET.gov>
  1343. Date: 6 Feb 1997 17:31:26 GMT
  1344. Organization: National Renewable Energy Laboratory
  1345.  
  1346. In article <bwood-0602970151240001@kyoto-11.slip.uiuc.edu> Brett Wood,
  1347. bwood@uiuc.edu writes:
  1348.  
  1349. >Apparently I do not understand how to use BitMapToRegion, and as the IM
  1350. >documention (in Basic Quickdraw) was not very helpful, I was hoping
  1351. >someone could give me a brief explanation as to why the above technique
  1352. >doesn't work.
  1353.  
  1354. The first thing to remember about BitMapToRegion is that it works on
  1355. either B&W BitMaps or 1-bit PixMaps.  If your GWorld has a depth that
  1356. is greater than 1, you'll have to work around this.
  1357.  
  1358. >From New Inside Mac: Imaging with Quickdraw:
  1359.  
  1360. BitMapToRegion
  1361.  
  1362. You can use the BitMapToRegion function to convert a bitmap or pixel map
  1363. to a region.
  1364.  
  1365. FUNCTION BitMapToRegion (region: RgnHandle; bMap: BitMap): OSErr;
  1366.  
  1367. region  A handle to a region to hold the converted BitMap or PixMap
  1368. record.
  1369. bMap    A BitMap or PixMap record.
  1370.  
  1371. DESCRIPTION
  1372. The BitMapToRegion function converts a given BitMap or PixMap record to
  1373. a region. You would generally use this region later for drawing
  1374. operations. The region parameter must be a valid region handle created
  1375. with the NewRgn function (described in the chapter ≥QuickDraw Drawing≤).
  1376. The old region contents are lost.
  1377.  
  1378. The bMap parameter may be either a BitMap or PixMap record. If you pass
  1379. a PixMap record, its pixel depth must be 1. 
  1380.  
  1381. RESULT CODES
  1382. pixmapTooDeepErr  ≠148  Pixel map is deeper than 1 bit per pixel    
  1383. rgnTooBigErr      ≠500  Bitmap would convert to a region greater than 64
  1384. KB
  1385.  
  1386. +++++++++++++++++++++++++++
  1387.  
  1388. >From hpetsch@island.net (Herb Petschauer)
  1389. Date: Thu, 06 Feb 1997 10:08:20 -0800
  1390. Organization: none
  1391.  
  1392. In article <bwood-0602970151240001@kyoto-11.slip.uiuc.edu>, bwood@uiuc.edu
  1393. (Brett Wood) wrote:
  1394.  
  1395. > Here's the scenario:  I have an offscreen graphics world which contains
  1396. an image
  1397. ...
  1398. >   
  1399. >    RgnHandle mask = NewRgn();
  1400. >    BitMapToRegion(mask, &((GrafPtr)picGWorld)->portBits);
  1401. >    //InvertRgn(mask); (tried with and without this)
  1402. >    CopyBits(&((GrafPtr)picGWorld)->portBits, &port->portBits,
  1403. >             &srcRect, &destRect, srcCopy, mask);
  1404. > Apparently I do not understand how to use BitMapToRegion, and as the IM
  1405.  
  1406. BitMapToRegion() requires a bitmap, it looks to me as if you are using a
  1407. colour GWorld.  If even your colour offscreen image only uses 2 colours
  1408. (black and white) BitMapToRegion will fail.
  1409.  
  1410. BitMapToRegion() returns an OSErr, confirm that it is not returning "noErr"
  1411. in your case.  I believe that an error of -148 indicates a
  1412. pixMapTooDeepError.
  1413.  
  1414. Hope this helps,
  1415.  
  1416.  
  1417. H.
  1418.  
  1419. -- 
  1420. No male in his family has lived longer than 45.  He eats Fast Food, five
  1421. times a day.  He hasn't left his armchair in 2 months.  He is 45 kg.
  1422. overweight - and climbing.  If you listen closely, you can hear his
  1423. arteries clogging.
  1424.  
  1425. No Fear (TM).
  1426. hpetsch@island.net  ;-)
  1427.                          
  1428.  
  1429. +++++++++++++++++++++++++++
  1430.  
  1431. >From matt@colorpar.com (Matt Gieselman)
  1432. Date: Thu, 06 Feb 1997 10:40:00 -0800
  1433. Organization: The Color Partnership
  1434.  
  1435. In article <bwood-0602970151240001@kyoto-11.slip.uiuc.edu>, bwood@uiuc.edu
  1436. (Brett Wood) wrote:
  1437.  
  1438. Brett,
  1439.  
  1440. Looking at the following code:
  1441.  
  1442. >    RgnHandle mask = NewRgn();
  1443. >    BitMapToRegion(mask, &((GrafPtr)picGWorld)->portBits);
  1444. >    //InvertRgn(mask); (tried with and without this)
  1445. >    CopyBits(&((GrafPtr)picGWorld)->portBits, &port->portBits,
  1446. >             &srcRect, &destRect, srcCopy, mask);
  1447.  
  1448. I would guess that your picGWorld is color and not black and
  1449. white.  BitMapToRegion expects the gWorld to be 1 bit deep.
  1450.  
  1451. You can check this by declaring a variable err of type short
  1452. and making the call like this:
  1453.  
  1454.     err = BitMapToRegion
  1455.     if ( err == pixMapTooDeepErr )
  1456.         SysBeep( 1 );
  1457.  
  1458. This will let you know if the picGWorld is what the region
  1459. expects.  Also you should call EmptyRgn to see if the region
  1460. has nothing in it.
  1461.  
  1462. Probably what you need to do is allocate a GWorld that is
  1463. 1 bit deep, draw your pict into that GWorld and then use
  1464. that in the BitMapToRegion call.
  1465.  
  1466. Hope this helps,
  1467. Matt
  1468.  
  1469. - ------------------------------------------------------------
  1470. Matt Gieselman  
  1471. Software Engineer and Juggler                      
  1472. The Color Partnership
  1473. matt@colorpar.com
  1474. www.colorpar.com
  1475. - -----------------------------------------------------------
  1476.  
  1477. +++++++++++++++++++++++++++
  1478.  
  1479. >From bwood@uiuc.edu (Brett Wood)
  1480. Date: Thu, 06 Feb 1997 13:41:03 -0500
  1481. Organization: University of Illinois
  1482.  
  1483.  
  1484. > I would guess that your picGWorld is color and not black and
  1485. > white.  BitMapToRegion expects the gWorld to be 1 bit deep.
  1486. > You can check this by declaring a variable err of type short
  1487. > and making the call like this:
  1488. >     err = BitMapToRegion
  1489. >     if ( err == pixMapTooDeepErr )
  1490. >         SysBeep( 1 );
  1491. > This will let you know if the picGWorld is what the region
  1492. > expects.  Also you should call EmptyRgn to see if the region
  1493. > has nothing in it.
  1494. > Probably what you need to do is allocate a GWorld that is
  1495. > 1 bit deep, draw your pict into that GWorld and then use
  1496. > that in the BitMapToRegion call.
  1497. > Hope this helps,
  1498. > Matt
  1499.  
  1500. Yep, this was precisely my problem.  Thanks to all who responded.
  1501.  
  1502. Brett
  1503.  
  1504. +++++++++++++++++++++++++++
  1505.  
  1506. >From stone@enetis.net (Kevin and Brian Stone)
  1507. Date: 6 Feb 1997 12:25:45 -0700
  1508. Organization: E-Net Information Services (605-341-ENET)
  1509.  
  1510. : > Here's the scenario:  I have an offscreen graphics world which contains
  1511. : an image
  1512. : ...
  1513. : >   
  1514. : >    RgnHandle mask = NewRgn();
  1515. : >    BitMapToRegion(mask, &((GrafPtr)picGWorld)->portBits);
  1516. : >    //InvertRgn(mask); (tried with and without this)
  1517. : >    CopyBits(&((GrafPtr)picGWorld)->portBits, &port->portBits,
  1518. : >             &srcRect, &destRect, srcCopy, mask);
  1519. : > 
  1520. : > Apparently I do not understand how to use BitMapToRegion, and as the IM
  1521.  
  1522. : BitMapToRegion() requires a bitmap, it looks to me as if you are using a
  1523. : colour GWorld.  If even your colour offscreen image only uses 2 colours
  1524. : (black and white) BitMapToRegion will fail.
  1525.  
  1526.   You CAN use a GWorld pixmap, but you must make the pixelDepth 1-bit...
  1527.     NewGWorld(&myMaskGWorld, 1, &maskRect, nil, nil, nil);
  1528.  
  1529.   You should also be aware of the regions size, memory wise.  Regions can 
  1530.   not be larger than 32k.  It's quite difficult to make a region this 
  1531.   large, but if you think your regions may be exceeding 32k, then you can 
  1532.   use GetHandleSize() after creating the region to see how large it 
  1533.   actualy is.
  1534.  
  1535. Sincerly,
  1536.   Brian Stone
  1537.   programmer
  1538.   Stone Entertainment
  1539.   stone@enetis.net
  1540.   http://www.enetis.net/~stone
  1541.  
  1542.  
  1543. +++++++++++++++++++++++++++
  1544.  
  1545. >From Wordman <wordman@pobox.com>
  1546. Date: Wed, 12 Feb 1997 10:59:19 -0500
  1547. Organization: Flashpoint, Inc.
  1548.  
  1549. Brett Wood wrote:
  1550. > Here's the scenario:  I have an offscreen graphics world which contains an image
  1551. > generated by using SetCPixel for whichever pixels are part of the image.  Any
  1552. > pixels within the bounds of the world which are a part of the "background" have
  1553. > had nothing done to them since the world's creation.  Now I want to copy this
  1554. > image onto another image, while preserving the background.  I create a new
  1555.  
  1556. It sounds like you are trying to draw with a transparent color. That is,
  1557. take an image and transfer every pixel of it to another picture except
  1558. those pixels that are the color of the background. There is an easier
  1559. way to do this, the gist of which is this:
  1560.  
  1561.    RGBBackColor( &theBackgroundColor );
  1562.         
  1563.       // Copy the pixels using Apple's recommended port coersion.
  1564.    CopyBits( &((GrafPtr)theSrcPortPtr)->portBits,
  1565.            &((GrafPtr)theDstPortPtr)->portBits,
  1566.            &theSrcRect,&theDestRect,transparent,nil );
  1567.  
  1568. The key is the transparent mode constant. This should be way faster than
  1569. using SetCPixel. If you really need to use the mask, use the bit
  1570. transfers that take masks: CopyMask and CopyDeepMask. These routines are
  1571. like CopyBits, but they take an extra bitmap parameter as a mask. All
  1572. the pixels from the source are blown through this mask onto the
  1573. destination.
  1574.  
  1575. Wordman
  1576. http://pobox.com/~wordman
  1577.  
  1578. ---------------------------
  1579.  
  1580. >From T.J. Patterson <monoply@primenet.com>
  1581. Subject: Images In "SimpleText"?..
  1582. Date: 10 Feb 1997 04:14:01 -0700
  1583. Organization: Primenet (602)416-7000
  1584.  
  1585. I wasn't sure if this was the place to post this question, but I need
  1586. help.
  1587.  
  1588. I have previously seen software companies, and others, include images and
  1589. order forms in SimpleText documents as well as the normal text.
  1590.  
  1591. I tried to find out how by playing with it, but can't make it happen. I
  1592. can "open" a PICT image in a SimpleText window, but then can't type a
  1593. document in it, and can't import the image into a document either.
  1594.  
  1595. Does anyone have any ideas on how I can make this happen? Thanks for any
  1596. help :)
  1597.  
  1598. T.J. Patterson
  1599. monoply@primenet.com
  1600.  
  1601.  
  1602.  
  1603. +++++++++++++++++++++++++++
  1604.  
  1605. >From Wulf Hofbauer <wh@echo.chem.tu-berlin.de>
  1606. Date: Mon, 10 Feb 1997 18:15:24 +0100
  1607. Organization: Max-Volmer-Institut, TU Berlin
  1608.  
  1609. T.J. Patterson wrote:
  1610.  I have previously seen software companies, and others, include images
  1611. and
  1612. > order forms in SimpleText documents as well as the normal text.
  1613. > I tried to find out how by playing with it, but can't make it happen. I
  1614. > can "open" a PICT image in a SimpleText window, but then can't type a
  1615. > document in it, and can't import the image into a document either.
  1616.  
  1617. Copy the PICT resources you want to include into the resource fork. They
  1618. should be numbered consecutively, starting with ID=1000.
  1619. The pictures will be displayed by SimpleText wherever there's a sticky
  1620. space (Cmd-space) character in the text. Note that you'll have to enter
  1621. some blank lines because no room is reserved for the pictures.
  1622.  
  1623. As for making the file read-only, change the file type from "TEXT" to
  1624. "ttro" (which means TeachText Read Only).
  1625.  
  1626. - Wulf
  1627.  
  1628. -- 
  1629.  ________________________________________________________
  1630. ! Dipl. Phys. Wulf Hofbauer  (wh@echo.chem.tu-berlin.de) !
  1631. ! Max-Volmer-Institut     Technische Universitaet Berlin !
  1632. ! Strasse des 17. Juni 135     10623 Berlin      Germany !
  1633. !________________________________________________________!
  1634.  
  1635. +++++++++++++++++++++++++++
  1636.  
  1637. >From bitzm@apple.com (Mike Bitz)
  1638. Date: Mon, 10 Feb 1997 13:13:36 -0700
  1639. Organization: Apple Computer, Inc.
  1640.  
  1641. > I have previously seen software companies, and others, include images and
  1642. > order forms in SimpleText documents as well as the normal text.
  1643. >...
  1644. > Does anyone have any ideas on how I can make this happen? Thanks for any
  1645. > help :)
  1646.  
  1647. Check out Technote 1005 which is available at:
  1648. <http://17.126.23.20/dev/technotes/tn/tn1005.html>
  1649.  
  1650. -Mike
  1651.  
  1652. +++++++++++++++++++++++++++
  1653.  
  1654. >From dsample@synapse.net (Don Sample)
  1655. Date: Mon, 10 Feb 1997 15:42:10 -0500
  1656. Organization: DASoftware
  1657.  
  1658. In article <5dmvtp$qgj@nnrp1.news.primenet.com>, T.J. Patterson
  1659. <monoply@primenet.com> wrote:
  1660.  
  1661. >I wasn't sure if this was the place to post this question, but I need
  1662. >help.
  1663. >
  1664. >I have previously seen software companies, and others, include images and
  1665. >order forms in SimpleText documents as well as the normal text.
  1666. >
  1667. >I tried to find out how by playing with it, but can't make it happen. I
  1668. >can "open" a PICT image in a SimpleText window, but then can't type a
  1669. >document in it, and can't import the image into a document either.
  1670. >
  1671. >Does anyone have any ideas on how I can make this happen? Thanks for any
  1672. >help :)
  1673. >
  1674. >T.J. Patterson
  1675. >monoply@primenet.com
  1676.  
  1677. IIRC you put a non-breaking space character (option-space) into your text
  1678. followed by enough return characters to make a hole for the image you want
  1679. to display, and then put the images into the resource fork as a series of
  1680. PICT resources.  I do not recall whether or not there was any special
  1681. numbering you had to do for the resources.  Someone else may know, or you
  1682. can experiment.
  1683.  
  1684. -- 
  1685. Don Sample                          |
  1686. dsample@bix.com                     |    Quando Omni Flunkus Moritati
  1687. dsample@synapse.net                 |
  1688. http://www.synapse.net/~dsample/    | 
  1689.  
  1690. +++++++++++++++++++++++++++
  1691.  
  1692. >From stone@enetis.net (Kevin and Brian Stone)
  1693. Date: 10 Feb 1997 18:19:00 -0700
  1694. Organization: E-Net Information Services (605-341-ENET)
  1695.  
  1696. : > I have previously seen software companies, and others, include images and
  1697. : > order forms in SimpleText documents as well as the normal text.
  1698. : >...
  1699. : > Does anyone have any ideas on how I can make this happen? Thanks for any
  1700. : > help :)
  1701.  
  1702.   It's very simple.
  1703.   Press option-space where ever you want a picture.  Save the file and 
  1704.   then open it up in ResEdit, or your favorite resource editor.  Copy in 
  1705.   your pictures in the order you want them to display in the document, 
  1706.   and change their ID's to 1000, 1001, 1002, etc.
  1707.  
  1708.   If you want to make a simpletext document read-only, open the document 
  1709.   up in a resouce editor and chage the file Type from 'TEXT' to 'ttro'.
  1710.   This will also make it use the standard "newspaper" icon. :)
  1711.  
  1712. Sincerly,
  1713.   Brian Stone
  1714.   programmer
  1715.   Stone Entertainment
  1716.   stone@enetis.net
  1717.   http://www.enetis.net/~stone
  1718.  
  1719.  
  1720. +++++++++++++++++++++++++++
  1721.  
  1722. >From T.J. Patterson <monoply@primenet.com>
  1723. Date: 14 Feb 1997 03:07:02 -0700
  1724. Organization: Primenet (602)416-7000
  1725.  
  1726. Wulf Hofbauer <wh@echo.chem.tu-berlin.de> wrote:
  1727.  
  1728. : Copy the PICT resources you want to include into the resource fork. They
  1729. : should be numbered consecutively, starting with ID=1000.
  1730. : The pictures will be displayed by SimpleText wherever there's a sticky
  1731. : space (Cmd-space) character in the text. Note that you'll have to enter
  1732. : some blank lines because no room is reserved for the pictures.
  1733.  
  1734. : As for making the file read-only, change the file type from "TEXT" to
  1735. : "ttro" (which means TeachText Read Only).
  1736.  
  1737. The man knows his stuff! I tried this and it works great. I now have
  1738. snazzy SimpleText documents with colorfull PICT's, etc..
  1739.  
  1740. Now, how 'bout adding sound resources to 'em =)
  1741.  
  1742. T.J. Patterson
  1743.  
  1744.  --------------------------------------------
  1745.               Monopoly Management
  1746.              monoply@primenet.com
  1747.  http://www.primenet.com/~monoply/credit.html
  1748.  
  1749.                  PO Box 37253
  1750.             Phoenix, AZ 85069-7253
  1751.           (800) 484-6302  ext: 0109
  1752.  --------------------------------------------
  1753.  
  1754.  
  1755. ---------------------------
  1756.  
  1757. >From "Eduardo Suastegui" <eduardo@quests.com>
  1758. Subject: MRJ and stand-alone Java applications
  1759. Date: Fri, 31 Jan 1997 15:42:23 +0000
  1760. Organization: Quest Software
  1761.  
  1762. Is it possible to run a stand-alone Java application with MRJ (Applet
  1763. Runner)?
  1764. I have not been able to open anything with the Applet Runner other than HTML
  1765. files.
  1766.  
  1767. Please respond via email to eduardo@quests.com
  1768.  
  1769. Thanks in advance,
  1770.    Ed Suastegui
  1771.  
  1772. +++++++++++++++++++++++++++
  1773.  
  1774. >From Bob Foster <bobfoster@worldnet.att.net>
  1775. Date: Sat, 01 Feb 1997 00:24:38 +0000
  1776. Organization: Symantec Corp.
  1777.  
  1778. Eduardo Suastegui wrote:
  1779. > Is it possible to run a stand-alone Java application with MRJ (Applet
  1780. > Runner)?
  1781. > I have not been able to open anything with the Applet Runner other than HTML
  1782. > files.
  1783. > Please respond via email to eduardo@quests.com
  1784.  
  1785. Download the MRJ SDK and use JRunner.
  1786.  
  1787. Bob
  1788.  
  1789. +++++++++++++++++++++++++++
  1790.  
  1791. >From uzs90z@uni-bonn.de (Michael Schuerig)
  1792. Date: Sat, 1 Feb 1997 12:09:39 +0100
  1793. Organization: RHRZ - University of Bonn (Germany)
  1794.  
  1795. Eduardo Suastegui <eduardo@quests.com> wrote:
  1796.  
  1797. > Is it possible to run a stand-alone Java application with MRJ (Applet
  1798. > Runner)?
  1799. > I have not been able to open anything with the Applet Runner other than HTML
  1800. > files.
  1801.  
  1802. You need to get the MRJ SDK for that. <http://applejava.apple.com/>.
  1803.  
  1804. Michael
  1805.  
  1806. - -
  1807. Michael Schuerig
  1808. mailto:uzs90z@uni-bonn.de
  1809. http://www.uni-bonn.de/~uzs90z/
  1810.  
  1811. +++++++++++++++++++++++++++
  1812.  
  1813. >From pmth02jc@umassd.edu (Jim Correia)
  1814. Date: Sat, 01 Feb 1997 01:53:23 -0500
  1815. Organization: University of Massachusetts Dartmouth
  1816.  
  1817. In article <eduardo-3101971542230001@192.77.210.102>, "Eduardo Suastegui"
  1818. <eduardo@quests.com> wrote:
  1819.  
  1820. >Is it possible to run a stand-alone Java application with MRJ (Applet
  1821. >Runner)?
  1822. >I have not been able to open anything with the Applet Runner other than HTML
  1823. >files.
  1824.  
  1825. Get the 1.0b4 sdk.  It lets you build standalone, double-clickable applications.
  1826. Jim
  1827.  
  1828. -- 
  1829. --
  1830. Jim Correia                              There is probably a cow in a
  1831. pmth02jc@umassd.edu                      field somewhere saying moo.
  1832. http://tango.mth.umassd.edu/correia/
  1833.  
  1834. +++++++++++++++++++++++++++
  1835.  
  1836. >From "Eduardo Suastegui" <esuastegui@msn.com>
  1837. Date: Sat, 01 Feb 1997 10:23:12 -0800
  1838. Organization: My Happy Home
  1839.  
  1840. Michael Schuerig <uzs90z@uni-bonn.de> wrote in article
  1841. <1997020112093920404@rhrz-ts2-p12.rhrz.uni-bonn.de>...
  1842. > You need to get the MRJ SDK for that. <http://applejava.apple.com/>.
  1843.  
  1844. I have downloaded MRJ, and I have tried to run .class files. But as I said
  1845. in my original message,
  1846. all the Apple Applet Runner lets me do is open HTML files. I am used to
  1847. applications on the Sun
  1848. and on Windows that let run an applet as a stand-alone application from the
  1849. command line. For
  1850. example:
  1851.  
  1852. # jview MyApplet.class
  1853.  
  1854. Is there an equivalent way to do this using MRJ?
  1855.  
  1856. Regards,
  1857.    Ed Suastegui
  1858.  
  1859. +++++++++++++++++++++++++++
  1860.  
  1861. >From Bob Foster <bobfoster@worldnet.att.net>
  1862. Date: Sat, 01 Feb 1997 20:57:33 +0000
  1863. Organization: Symantec Corp.
  1864.  
  1865. Eduardo Suastegui wrote:
  1866. > Michael Schuerig <uzs90z@uni-bonn.de> wrote in article
  1867. > <1997020112093920404@rhrz-ts2-p12.rhrz.uni-bonn.de>...
  1868. > > You need to get the MRJ SDK for that. <http://applejava.apple.com/>.
  1869. > I have downloaded MRJ, and I have tried to run .class files. But as I said...
  1870.  
  1871. You need the MRJ SDK for that. Oh, that's what the last guy said. Let's
  1872. try this: Just the MRJ isn't enough, you also need to download the MRJ
  1873. SDK. It has an application named JRunner that does what you want.
  1874.  
  1875. Bob
  1876.  
  1877. +++++++++++++++++++++++++++
  1878.  
  1879. >From gmcgath@mv.mv.com (Gary McGath)
  1880. Date: Thu, 06 Feb 1997 10:25:17 -0500
  1881. Organization: Conceptual Design
  1882.  
  1883. In article <32F3AE38.670C@worldnet.att.net>, rfoster@symantec.com wrote:
  1884.  
  1885.  
  1886. >You need the MRJ SDK for that. Oh, that's what the last guy said. Let's
  1887. >try this: Just the MRJ isn't enough, you also need to download the MRJ
  1888. >SDK. It has an application named JRunner that does what you want.
  1889.  
  1890. The inclusion of JRunner only with the SDK seems to suggest that Java
  1891. applications "aren't ready for prime time," at least on the Mac. This is
  1892. rather unfortunate, since my client has had me doing a series of applets
  1893. which really push the limits of the applet paradigm; e.g., lack of file
  1894. access limits what they can do. I hope this will be changing in the near
  1895. future.
  1896.  
  1897. -- 
  1898.    Gary McGath     gmcgath@mv.mv.com
  1899.    http://www.ultranet.com/~gmcgath
  1900.    If you've recently seen a newsgroup spam with my name forged
  1901.    to it, please read http://www.ultranet.com/~gmcgath/forginfo.html
  1902.  
  1903. +++++++++++++++++++++++++++
  1904.  
  1905. >From "Eduardo Suastegui" <esuastegui@msn.com>
  1906. Date: Fri, 07 Feb 1997 21:53:04 -0800
  1907. Organization: My Happy Home
  1908.  
  1909.  
  1910.  
  1911. Michael Schuerig <uzs90z@uni-bonn.de> wrote in article
  1912. <1997020112093920404@rhrz-ts2-p12.rhrz.uni-bonn.de>...
  1913. > You need to get the MRJ SDK for that. <http://applejava.apple.com/>.
  1914. > Michael
  1915. > ---
  1916.  
  1917. Well, that did the trick... After I struggled a bit. The only way I could
  1918. get it to work was to:
  1919. 1) Compress all my classes into a single ZIP file, storing the relative
  1920. paths for all the .class files.
  1921. 2) Drag-drop the .ZIP file onto JRunner.
  1922. 3) Select Save Settings, and click on Create Application.
  1923. 4) Save the application into the same directory where my .ZIP file, and
  1924. other files were located.
  1925.  
  1926. Drag-dropping the .ZIP file onto JRunner and pressing the Execute button
  1927. did not do it, because all calls to getDocumentBase() would return the
  1928. absolute path for JRunner and _not_ for my .ZIP file (i.e., applet
  1929. classes). Quite an education!
  1930.  
  1931. Hope my fumbling along helps others.
  1932.  
  1933. Ed Suastegui
  1934.  
  1935.  
  1936. +++++++++++++++++++++++++++
  1937.  
  1938. >From gchapman@irus.rri.uwo.ca (Greg Chapman)
  1939. Date: Wed, 12 Feb 1997 16:07:11 -0500
  1940. Organization: John P. Robarts Research Institute
  1941.  
  1942. In article <gmcgath-ya02408000R0602971025170001@nh.ultranet.com>,
  1943. gmcgath@mv.mv.com (Gary McGath) wrote:
  1944.  
  1945. > rather unfortunate, since my client has had me doing a series of applets
  1946. > which really push the limits of the applet paradigm; e.g., lack of file
  1947. > access limits what they can do. I hope this will be changing in the near
  1948.  
  1949. That's not pushing the 'applet paradigm', it's pushing the applet Security
  1950. policies...
  1951.  
  1952. -- 
  1953. Greg Chapman
  1954. Mac Developer - Robarts Research Institute
  1955. Imaging Research Labs
  1956. - -
  1957. "You! Out of the gene pool!"
  1958.  
  1959. ---------------------------
  1960.  
  1961. >From Geoff@CalibanMW.com (Geoff Price)
  1962. Subject: SFGetFile feeding Finder doc info automatically?
  1963. Date: Wed, 12 Feb 1997 17:24:52 -0800
  1964. Organization: Caliban Mindwear
  1965.  
  1966. Under what conditions does the Finder initiate opening a document by
  1967. simulating a File->Open and feeding the info automatically through the
  1968. SFreply parameter in the subsequent call to SFGetFile()?
  1969.  
  1970. (Or, what am I confused about?)
  1971.  
  1972. I was stepping through this app to figure out why it wasn't calling the
  1973. installed apple event handlers for the core suite deals (i.e.
  1974. kAEOpenApplication), yet was still able to open documents dropped from the
  1975. Finder.  After I dropped the document, I watched the app respond as if the
  1976. "Open" menu item under the "File" menu had been selected, but when it
  1977. reached the SFGetFile() API call no dialog appeared, instead the
  1978. appropriate info from the dragged doc just got fed in automatically
  1979. through the SFReply struct.
  1980.  
  1981. What enables this behavior?  I can't find a mention of this in any docs.
  1982. Everything else in the app conforms to what I know about AE handling (four
  1983. calls to AEInstallEventHandler for the core events, etc.)
  1984.  
  1985. Meanwhile I'm trying to handle the kAEOpenApplication event properly (i.e.
  1986. open an untitled doc), but not getting it.  This is old code which I've
  1987. updated to universal headers, so one possibility I wanted to check here
  1988. was problems with the new procptrs.  But the above behavior caught my
  1989. attention first.
  1990.  
  1991. --
  1992. Geoff Price
  1993. Geoff@CalibanMW.com
  1994.  
  1995. +++++++++++++++++++++++++++
  1996.  
  1997. >From Stephen C. Gilardi <squeegee@concentric.net>
  1998. Date: 15 Feb 1997 17:00:20 GMT
  1999. Organization: SQ Software
  2000.  
  2001. In article <Geoff-1202971724520001@max1-084.snlo.dialup.callamer.com>
  2002. Geoff Price, Geoff@CalibanMW.com writes:
  2003.  
  2004. >I was stepping through this app to figure out why it wasn't calling the
  2005. >installed apple event handlers for the core suite deals (i.e.
  2006. >kAEOpenApplication), yet was still able to open documents dropped from the
  2007. >Finder.  After I dropped the document, I watched the app respond as if the
  2008. >"Open" menu item under the "File" menu had been selected, but when it
  2009. >reached the SFGetFile() API call no dialog appeared, instead the
  2010. >appropriate info from the dragged doc just got fed in automatically
  2011. >through the SFReply struct.
  2012.  
  2013. One thing to check is whether or not the "IsHighLevelEventAware" bit is
  2014. set in the application's SIZE resource.  It's one of those flags that
  2015. you can set in the CodeWarrior Project Settings dialog.  It's under "PPC
  2016. Project" or "68K Project" in the popup menu labeled "SIZE Flags".
  2017.  
  2018. To receive AppleEvents, the flag should be set.
  2019.  
  2020. --Steve
  2021.  
  2022. -- 
  2023. Stephen C. Gilardi
  2024. SQ Software
  2025.  
  2026. +++++++++++++++++++++++++++
  2027.  
  2028. >From davep@best.nospam.com (Dave Polaschek)
  2029. Date: Sat, 15 Feb 1997 11:56:54 -0600
  2030. Organization: Polaschek Publishing
  2031.  
  2032. In article <Geoff-1202971724520001@max1-084.snlo.dialup.callamer.com>,
  2033. Geoff@CalibanMW.com (Geoff Price) wrote:
  2034.  
  2035. > I was stepping through this app to figure out why it wasn't calling the
  2036. > installed apple event handlers for the core suite deals (i.e.
  2037. > kAEOpenApplication), yet was still able to open documents dropped from the
  2038. > Finder.  After I dropped the document, I watched the app respond as if the
  2039. > "Open" menu item under the "File" menu had been selected, but when it
  2040. > reached the SFGetFile() API call no dialog appeared, instead the
  2041. > appropriate info from the dragged doc just got fed in automatically
  2042. > through the SFReply struct.
  2043.  
  2044. Finder does this for you when your application looks like it doesn't
  2045. respond to Apple Events.
  2046.  
  2047. > Meanwhile I'm trying to handle the kAEOpenApplication event properly (i.e.
  2048. > open an untitled doc), but not getting it.  This is old code which I've
  2049. > updated to universal headers, so one possibility I wanted to check here
  2050. > was problems with the new procptrs.  But the above behavior caught my
  2051. > attention first.
  2052.  
  2053. Make sure you have the "Accepts High Level Events" flag set in your 'SIZE'
  2054. resource. That's how finder can tell if you accept Apple Events.
  2055.  
  2056. -DaveP
  2057.  
  2058. -- 
  2059. Dave Polaschek - personal: davep@best.com or davep@mn.uswest.net
  2060. PGP key and other spiffy things at <http://www.best.com/~davep/>
  2061.  
  2062. +++++++++++++++++++++++++++
  2063.  
  2064. >From Geoff@CalibanMW.com (Geoff Price)
  2065. Date: Mon, 17 Feb 1997 21:06:47 -0800
  2066. Organization: Caliban Mindwear
  2067.  
  2068. In article <5e4q34$hb6@chronicle.concentric.net>, Stephen C. Gilardi
  2069. <squeegee@concentric.net> wrote:
  2070.  
  2071. > In article <Geoff-1202971724520001@max1-084.snlo.dialup.callamer.com>
  2072. > Geoff Price, Geoff@CalibanMW.com writes:
  2073. > >I was stepping through this app to figure out why it wasn't calling the
  2074. > >installed apple event handlers for the core suite deals (i.e.
  2075. > >kAEOpenApplication), yet was still able to open documents dropped from the
  2076. > >Finder.  After I dropped the document, I watched the app respond as if the
  2077. > >"Open" menu item under the "File" menu had been selected, but when it
  2078. > >reached the SFGetFile() API call no dialog appeared, instead the
  2079. > >appropriate info from the dragged doc just got fed in automatically
  2080. > >through the SFReply struct.
  2081. > One thing to check is whether or not the "IsHighLevelEventAware" bit is
  2082. > set in the application's SIZE resource.  It's one of those flags that
  2083. > you can set in the CodeWarrior Project Settings dialog.  It's under "PPC
  2084. > Project" or "68K Project" in the popup menu labeled "SIZE Flags".
  2085. > To receive AppleEvents, the flag should be set.
  2086.  
  2087. Yep, I looked in the wrong place first (ResEdit) and got confused.  Thanx.
  2088.  
  2089. --
  2090. Geoff Price
  2091. Geoff@CalibanMW.com
  2092.  
  2093. +++++++++++++++++++++++++++
  2094.  
  2095. >From pelak@sage.msc.cornell.edu (Robert A. Pelak)
  2096. Date: 18 Feb 1997 15:39:41 GMT
  2097. Organization: Cornell University
  2098.  
  2099. In article <davep-1502971156550001@dialup6.mn.uswest.net>,
  2100. Dave Polaschek <davep@best.nospam.com> wrote:
  2101. >In article <Geoff-1202971724520001@max1-084.snlo.dialup.callamer.com>,
  2102. >Geoff@CalibanMW.com (Geoff Price) wrote:
  2103. >
  2104. >> I was stepping through this app to figure out why it wasn't calling the
  2105. >> installed apple event handlers for the core suite deals (i.e.
  2106. >> kAEOpenApplication), yet was still able to open documents dropped from the
  2107. >> Finder.  After I dropped the document, I watched the app respond as if the
  2108. >> "Open" menu item under the "File" menu had been selected, but when it
  2109. >> reached the SFGetFile() API call no dialog appeared, instead the
  2110. >> appropriate info from the dragged doc just got fed in automatically
  2111. >> through the SFReply struct.
  2112. >
  2113. >Finder does this for you when your application looks like it doesn't
  2114. >respond to Apple Events.
  2115. >
  2116.  
  2117. How does Finder know how to do this?  What are the parameters?  I have
  2118. an application that I maintian that still runs under System 6 that
  2119. does this, and I've always wondered about it.  Can you tell me more or
  2120. point me toward more information?
  2121.  
  2122. >
  2123. >-DaveP
  2124. >
  2125. >-- 
  2126. >Dave Polaschek - personal: davep@best.com or davep@mn.uswest.net
  2127. >PGP key and other spiffy things at <http://www.best.com/~davep/>
  2128.  
  2129. Robert
  2130.  
  2131. +++++++++++++++++++++++++++
  2132.  
  2133. >From davep@best.nospam.com (Dave Polaschek)
  2134. Date: Tue, 18 Feb 1997 22:17:10 -0600
  2135. Organization: Polaschek Publishing
  2136.  
  2137. In article <5ecift$he8@newsstand.cit.cornell.edu>,
  2138. pelak@sage.msc.cornell.edu (Robert A. Pelak) wrote:
  2139.  
  2140. > In article <davep-1502971156550001@dialup6.mn.uswest.net>,
  2141. > Dave Polaschek <davep@best.nospam.com> wrote:
  2142. > >Finder does this for you when your application looks like it doesn't
  2143. > >respond to Apple Events.
  2144. > >
  2145. > How does Finder know how to do this?  What are the parameters?  I have
  2146. > an application that I maintian that still runs under System 6 that
  2147. > does this, and I've always wondered about it.  Can you tell me more or
  2148. > point me toward more information?
  2149.  
  2150. Finder patches StandardGetFile (or an associated lower-level trap) and
  2151. then launches your application, and feeds you an event saying that the
  2152. item in your file menu with the name "Open" (or with 'O' as its command-
  2153. key, it'll try pretty hard to find it) was selected. When the dialog
  2154. comes up in response to that event, finder fills in the SFReply for you,
  2155. and as if by magic, the document is opened.
  2156.  
  2157. Actually, where I say "Finder", I probably mean "Process Manager", but
  2158. since they live together....
  2159.  
  2160. I'm pretty sure it's documented SOMEWHERE, but can't put my finger on
  2161. where at the moment.
  2162.  
  2163. -DaveP
  2164.  
  2165. -- 
  2166. Dave Polaschek - personal: davep@best.com or davep@mn.uswest.net
  2167. PGP key and other spiffy things at <http://www.best.com/~davep/>
  2168.  
  2169. ---------------------------
  2170.  
  2171. >From briank@ctdnet.acns.nwu.edu (Brian Kendall)
  2172. Subject: Stereo sound?
  2173. Date: Tue, 11 Feb 1997 18:16:13 -0400
  2174. Organization: Programmer
  2175.  
  2176.  
  2177. Hi there!
  2178.  
  2179. Is there a way to pan sounds before you play them or while your playing
  2180. them? There doesn't seem to be much of a way to do this using what I know
  2181. of the Sound Manager.
  2182.  
  2183. (I have two speaks hooked up to an amplifier that my mac is hooked up to
  2184. so I do get very clear stereo sound. I've tried fooling around with the
  2185. music application PlayerPRO with stereo and everything went smoothly.)
  2186.  
  2187. Brian K.
  2188.  
  2189. ãããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããã
  2190. "If you take cranberries and stew them like applesauce,
  2191. it tastles much more like prunes then rhubarb does." - Groucho Marx
  2192. ãããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããã
  2193.  
  2194. +++++++++++++++++++++++++++
  2195.  
  2196. >From michael@nfocomm.com (Michael Connolly)
  2197. Date: Wed, 12 Feb 1997 15:27:53 -0600
  2198. Organization: <none>
  2199.  
  2200. In article <briank-1102971816130001@pistachio186191.nuts.nwu.edu>,
  2201. briank@ctdnet.acns.nwu.edu (Brian Kendall) wrote:
  2202.  
  2203. > Hi there!
  2204. > Is there a way to pan sounds before you play them or while your playing
  2205. > them? There doesn't seem to be much of a way to do this using what I know
  2206. > of the Sound Manager.
  2207. > Brian K.
  2208.  
  2209.    Get the Inside Macintosh: Sound book in print or at the
  2210. ftp.apple.com/devworld site in DocViewer format.  From what I know, if
  2211. your sound was recorded in stereo, it can be played back that way, and the
  2212. Sound Manager 3 may provide more control over this.  It does provide more
  2213. control over  multiple sound channel volumes.
  2214.  
  2215. - --
  2216. Michael Connolly <michael@nfocomm.com>
  2217. - --
  2218. Check out the CyberJibe web page (a humor newsletter/ Webzine) at
  2219. http://www.visionx.com/funny/
  2220. - -
  2221.  
  2222. +++++++++++++++++++++++++++
  2223.  
  2224. >From jackw@cdc.net (Jack W)
  2225. Date: 13 Feb 1997 04:43:49 GMT
  2226. Organization: Chattanooga Data Connection Inc.
  2227.  
  2228. In article <briank-1102971816130001@pistachio186191.nuts.nwu.edu>
  2229. briank@ctdnet.acns.nwu.edu (Brian Kendall) writes:
  2230.  
  2231. > Is there a way to pan sounds before you play them or while your playing
  2232. > them? There doesn't seem to be much of a way to do this using what I know
  2233. > of the Sound Manager.
  2234.  
  2235. Tricks of the Mac Game Programming Gurus has a library of sound
  2236. routines which include setting the panning of stereo sounds.
  2237.  
  2238. Jack W.
  2239.  
  2240. +++++++++++++++++++++++++++
  2241.  
  2242. >From zink@uiuc.edu (Dan Zink)
  2243. Date: Fri, 14 Feb 1997 11:25:18 -0600
  2244. Organization: University of Illinois
  2245.  
  2246. In article <5du665$g3h@cdc2.cdc.net>, jackw@cdc.net (Jack W) wrote:
  2247.  
  2248. > In article <briank-1102971816130001@pistachio186191.nuts.nwu.edu>
  2249. > briank@ctdnet.acns.nwu.edu (Brian Kendall) writes:
  2250. > > Is there a way to pan sounds before you play them or while your playing
  2251. > > them? There doesn't seem to be much of a way to do this using what I know
  2252. > > of the Sound Manager.
  2253. > Tricks of the Mac Game Programming Gurus has a library of sound
  2254. > routines which include setting the panning of stereo sounds.
  2255. > Jack W.
  2256.  
  2257. Do this:
  2258.  
  2259. rightVolume and leftVolume should be between 0 and 256.
  2260.  
  2261. SndCommand  theCommand;
  2262. OSErr    theErr;
  2263.  
  2264. theCommand.cmd = volumeCmd;         // Send volumeCmd to get stereo.
  2265. theCommand.param1 = 0;
  2266. theCommand.param2 = ((rightVolume << 16) + leftVolume);
  2267. theErr = SndDoImmediate(channelPtr, &theCommand);
  2268.  
  2269. Have fun!
  2270.  
  2271. -Dan
  2272. http://www.cen.uiuc.edu/~zink
  2273.  
  2274. ---------------------------
  2275.  
  2276. End of C.S.M.P. Digest
  2277. **********************
  2278.